package com.project.thisConsume.common.enums;

import com.project.thisCommon.common.EnumsBase;

public enum ExceptionCode implements EnumsBase {
    SYSTEM_ERROR("9999", "系统错误"),
    LOGIN_ERROR("1000", "登陆失败"),
    LOGIN_ERROR_EMPTY("1001", "请输入登录名以及登陆密码"),
    USERNAME_IS_NULL("1002", "登录名为空"),
    PASSWORD_IS_NULL("1003", "登录密码为空"),
    USER_NOT_EXIST("1004", "用户不存在"),
    PASSWORD_ERROR("1005", "登陆密码错误"),
    LOGINOUT_ERROR("1006", "登出失败"),
    FILEUPLOAD_ERRPR("1007", "文件上传失败"),
    AUTHORITY_ERROR("1008", "权限错误"),
    ID_NOT_EMPTY("1009", "id不能为空"),
    PARAM_NOT_EMPTY("1010", "请求参数不能为空"),
    INFO_NOT_HAVE("1011", "信息不存在"),
    ORDPATH_ERROR("1012","部门关系有误"),
    DTAE_TRANSFOR_ERROR("1013","日期转换失败"),
    EDUCATION_TRANSFOR_ERROR("1014","教育转换失败"),
    STAFF_TRANFOR_ERROR("1015","员工转换失败"),
    STAFFINFO_TRANFOR_ERROR("1016","员工信息转换失败"),
    CONTRACT_TRANFOR_ERROR("1017","合同信息转换失败"),
    UPLOAD_FILE_TYPE_ERROR("1018", "未找到保存类型"),
    USER_LOCK("1019", "用户锁定"),
    VERIFICATION_ERROR("1020", "验证码错误"),
    USER_NOT_REG("1021", "用户未完成注册"),
    LOAD_FILE_ERROR("1022", "文件下载失败"),
    OSS_FILE_RRROR("1023", "OSS返回错误");

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    private String code;
    private String message;

    ExceptionCode(String code, String msg) {
        this.code = code;
        this.message = msg;
    }
}
